package zhklappoint.enums;

/**
 * 是否成功枚举类
 *
 */
public enum ENUM_NORMAL {
	/**
	 * 0 正常状态  
	 */
	NORMAL(0),
	/**
	 * 1审核状态
	 */
	ABNORMAL(1);
	
	public final Integer value;

	private ENUM_NORMAL(Integer value) {
		this.value = value;
	}

	public static String getName(Integer value) {
		switch (value) {
		case 0:
			return "正常状态  ";
		case 1:
			return "异常状态";
		default:
			return "";
		}
	}
	
	public static boolean getIsBroadcast(Integer value) {
		switch (value) {
		case 0:
			return false;
		case 1:
			return true;
		default:
			return false;
		}
	}
	
	public static ENUM_NORMAL getValue(Integer value) {
		for (ENUM_NORMAL e : ENUM_NORMAL.values()) {
			if (e.value == value) {
				return e;
			}
		}
		return null;
	}
}
